package com.deer.wms.base.system.service.bill;

import com.deer.wms.base.system.model.MaterialEdit.MaterialEdit;
import com.deer.wms.base.system.model.bill.*;
import com.deer.wms.base.system.model.pda.Pdaweight;
import com.deer.wms.common.core.service.Service;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface IMaterialDetailService extends Service<MaterialDetail, Integer> {
    public List<MaterialDetailDto> selectMaterialList(MaterialDetailCriteria criteria);

    /**
     *单晶缓存线作业
     * @author 李帅辰
     * @date 2021/7/24 15:46
     * @return java.util.List<com.deer.wms.base.system.model.bill.MaterialDetailDto>
     */
    List<MaterialDetailDto> findMaterialDetailBoxList(MaterialDetailCriteria criteria);


    public List<MaterialDetail> findList(MaterialDetailCriteria materialDetailCriteria);

    List<MaterialDetail> findMaterialDetailList(String materialBatchId);

    int insertMaterialDetail(MaterialDetail materialDetail);

    MaterialDetail findMaterialDetailByMaterialId(String materialId);

    int delectMaterialDetail( Integer id);
    List<MaterialDetail>selectReturned(MaterialDetail materialDetail);
    List<MaterialDetail>selectCrystalByid(MaterialDetail materialDetail);
    Pdaweight selectWeight(@Param("bill_in_sap_detail_id")String bill_in_sap_detail_id);

    Integer updateMaterial(MaterialDetail materialDetail);
    int updatedetail(MaterialEdit materialEdit);
}
